<?php

namespace App\Services;

use App\Models\UpCustomer;
use Slowlyo\OwlAdmin\Services\AdminService;

/**
 * 上游管理
 *
 * @method UpCustomer getModel()
 * @method UpCustomer|\Illuminate\Database\Query\Builder query()
 */
class UpCustomerService extends AdminService
{
	protected string $modelName = UpCustomer::class;

	public function listQuery()
	{
		$model = $this->getModel();
		return $this->query()->with('bd_uid', 'sign_company')->orderByDesc($model->getUpdatedAtColumn());
	}
}